import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const STORE: AppRouteRecordRaw = {
    path: '/store',
    name: 'store',
    component: DEFAULT_LAYOUT,
    meta: {
        locale: 'menu.store',
        requiresAuth: true,
        icon: 'icon-command',
        order: 200,
    },
    children: [
        
        {
            path: 'goods',
            name: 'StoreIndex',
            component: () => import('@/views/store/index.vue'),
            meta: {
                locale: 'menu.store.index',
                requiresAuth: true,
                roles: ['*'],
                icon: 'icon-align-left',
            },
        },
        {
            path: 'cat',
            name: 'StoreCat',
            component: () => import('@/views/store/cat.vue'),
            meta: {
                locale: 'menu.store.cat',
                requiresAuth: true,
                roles: ['*'],
                icon: 'icon-apps',
            },
        },
        {
            path: 'pick-up-point',
            name: 'PickUpPoint',
            component: () => import('@/views/store/pick_up_point.vue'),
            meta: {
                locale: 'menu.store.pickUpPoint',
                requiresAuth: true,
                roles: ['*'],
                icon: 'icon-location',
            },
        }
    ],
};

export default STORE;
